import {Component} from '@angular/core';
import {RegisterTransferService} from './register-transfer.service';
import {Router} from '@angular/router';

@Component({
    selector: 'app-step3',
    template: `
        <div class="icon pt-md"><i class="anticon anticon-check-circle text-success icon-lg"></i></div>
        <h1 class="h2 pt-md">恭喜您,注册成功！</h1>
        <p class="pt-md text-grey">完善资料可获得50积分,积分可用于查看联系方式</p>

        <div nz-row class="my-md py-md">
            <div nz-col>
                <button nz-button (click)="forwardPag(0)" nzSize="large" [nzType]="'primary'">完善资料</button>
                <button nz-button nzSize="large" (click)="forwardPag(1)" class="ml-sm">返回首页</button>
            </div>
        </div>
    `
})
export class RegisterStep3Component {

    constructor(public item: RegisterTransferService, private router: Router) {
    }

    forwardPag(i) {
        if (i === 0) {
            this.router.navigate(['/']);
        }else {
            this.router.navigate(['/']);
        }
    }
}
